package model;

import java.util.Observable;
import java.util.Observer;

public class Player extends Observable{
	
	private int score;
	
	private int killsLeft;
	
	public Player(Observer obs){
		addObserver(obs);
		((LabelManager)obs).setPlayer(this);
		score = 0;
		killsLeft = 0;
	}

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
		setChanged();
		notifyObservers(score);
	}

	public int getKillsLeft() {
		return killsLeft;
	}

	public void setKillsLeft(int killsLeft) {
		this.killsLeft = killsLeft;
		setChanged();
		notifyObservers(-killsLeft);
	}
	
	

}
